package com.lu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lu.service.UserService;

@Controller
public class UserController {
	private @Autowired UserService userService;

	@RequestMapping("/users")
	public String index(Model model) {
		model.addAttribute("users", userService.getUsers());
		return "users";
	}
}
